<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:f="http://java.sun.com/jsf/core">
  <head>
  </head>
  <body>
    <ui:composition template="/WEB-INF/templates/segretario.xhtml">
      <ui:define name="titoloSottoSezione"> Gestione Bandi</ui:define>
      
      <ui:define name="contenuto">
        <h3>Bandi di programmazione didattica:</h3>
        
        <h:dataTable value="#{segretarioBandi.bandi}" var="bando" rendered="#{segretarioBandi.bandiPresenti}"
          headerClass="tableHeader" rowClasses="tableRow1, tableRow2">
          <h:column>
            <h:link outcome="/segretario/gestione-bando?faces-redirect=true" value="Vedi Dettaglio">
              <f:param name="idBando" value="#{bando.idBando}"/>
            </h:link> 
          </h:column>
          <h:column>
            <f:facet name="header">N#</f:facet>
            #{bando.idBando}
          </h:column>
          <h:column>
            <f:facet name="header">Pubblicato il</f:facet>
            #{bando.dataPubblicazione}
          </h:column>
          <h:column>
            <f:facet name="header">Scade il</f:facet>
            #{bando.dataScadenza}
          </h:column>
          <h:column>
            <f:facet name="header">Attivo</f:facet>
            #{bando.attivo ? "Si" : "No"}
          </h:column>
        </h:dataTable>
      </ui:define>
    </ui:composition>
  </body>
</html>